
#pragma once
#include <Max.h>
#include <string>
#include <IPathConfigMgr.h>

class iPlugingAssist
{
public:
	iPlugingAssist(void);
	~iPlugingAssist(void);
	static char m_DataFolder[256];

protected:
	std::string* m_sTypeList;	
	std::string* m_sKindList;	
	std::string* m_sGroupList;
	std::string* m_sItemList;	
	unsigned int m_nTypeNum;
	unsigned int m_nKindNum;
	unsigned int m_nGroupNum;
	unsigned int m_nItemNum;	
public:
	std::string& GetTypeName( unsigned int nNum )
	{
		return m_sTypeList[nNum];
	}
	std::string& GetKindName( unsigned int nNum )
	{
		return m_sKindList[nNum];
	}
	std::string& GetGroupName( unsigned int nNum )
	{
		return m_sGroupList[nNum];
	}
	std::string& GetItemName( unsigned int nNum )
	{
		return m_sItemList[nNum];
	}
	unsigned int GetTypeNum()
	{
		return m_nTypeNum;
	}
	unsigned int GetKindNum()
	{
		return m_nKindNum;
	}
	unsigned int GetGroupNum()
	{
		return m_nGroupNum;
	}
	unsigned int GetItemNum()
	{
		return m_nItemNum;
	}
	void ReadDataList( FILE* pStream, std::string*& pString, unsigned int& nNum );
	static iPlugingAssist* Create( TCHAR* FileName );
	
};
